package com.mmd.admin.model.pojo.result.mer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * @author xsj
 * @since 2023-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "后台菜单对象", description = "后台菜单对象")
public class MerMenuInfoVo implements Serializable {

    @ApiModelProperty(value = "菜单id")
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Long menuId;

    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @ApiModelProperty(value = "父级id")
    private Long parentId;

    @ApiModelProperty("菜单类型")
    private Integer menuType;

    @ApiModelProperty("子集菜单")
    private List<MerMenuInfoVo> children;
}
